<%--
    Created on : 2019
    Author     : 黄忠
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page errorPage="error.jsp" %>
<html>
<head lang="zh">
    <meta charset="utf-8" />
    <title>用户登录</title>
    <link rel="stylesheet" href="CSS/login.css">
</head>
<body>
<%
    if(session.getAttribute("login")!=null) response.sendRedirect("http://localhost:8080/main/main.jsp");
%>
<div class="bg">
    <img src="images/logo.png" alt="易展翅">
    <div class="window">
        <br>
        <div class="body">
            <div style="width: 100%;float: left;">
                <span style="margin-left: 10px; float: left;font-size: 18px">登录</span>
            </div>
            <div>
                <form action="LoginServlet" method="POST">
                    <div>
                        <input class="input_text" type="text" name="userName" placeholder="请输入用户名" required="required" autofocus style="margin-top: 10px;">
                    </div>
                    <div>
                        <input class="input_text" type="password" name="password" placeholder="请输入密码" required="required" style="margin-top: 10px;">
                    </div>
                    <div style="width: 360px;margin:10px auto;">
                        <div style="float: left;font-size: 15px;">
                            <input type="checkbox" name="remember_me" id="remember_me">
                            <label for="remember_me">记住我</label>
                        </div>
                        <a href="" style="float: right;">忘记密码?</a>
                    </div>
                    <input class="input_submit" type="submit" name="登录" value="登录">
                </form>
            </div>
        </div>

        <div>
            <div>
                <span style="color: #808080d9;font-size: 14px;">其他登录方式</span>
                <hr style="width: 360px">
                <div style="margin-top: 10px;">
                    <a class="" href="login/dgut" title="东莞理工学院登录">
                        <img src="images/dgut.png" alt="东莞理工学院登录">
                    </a>
                </div>

            </div>
        </div>
        <br>
    </div>
</div>
</body>
</html>

